//入场记录 - 人工操作
import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
import { ResultTable } from "./result/result_table";

const basePath = "artificial/";

//入场记录
export const entryList = (data?: object) => {
  return http.request<ResultTable>("post", baseUrlApi(basePath + "entry"), {
    data
  });
};

//新增入场
export const entryAdd = (data?: object) => {
  return http.request<ResultTable>(
    "post",
    baseUrlApi(basePath + "entry/add"),
    {
      data
    }
  );
};

//入场记录
export const outList = (data?: object) => {
  return http.request<ResultTable>("post", baseUrlApi(basePath) + "out", {
    data
  });
};

//新增入场
export const outAdd = (data?: object) => {
  return http.request<ResultTable>("post", baseUrlApi(basePath + "out/add"), {
    data
  });
};
